import config from "@/config"
import http from "@/utils/request"

export default {
	genConfig:{
		save:{
			url: `${config.API_URL}/xunheng-generator/genConfig/save`,
			name: "保存代码生成器设置",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
		saveAndGen:{
			url: `${config.API_URL}/xunheng-generator/genConfig/saveAndGen`,
			name: "保存代码生成器设置并生成代码",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
		saveAndGenFront:{
			url: `${config.API_URL}/xunheng-generator/genConfig/saveAndGenFront`,
			name: "保存代码生成器设置并生成前端代码",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
		getConfig:{
			url: `${config.API_URL}/xunheng-generator/genConfig/getConfig`,
			name: "获取代码生成器设置",
			get: async function(params){
				return await http.get(this.url,params);
			}
		}

	},
}

